package com.zhuiyun.project.api.courseSubscribe.mapper;

import com.zhuiyun.project.api.courseSubscribe.entity.CourseSubscribe;
import com.zhuiyun.project.api.courseSubscribe.model.CourseSubscribeModel;
import com.zhuiyun.project.common.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseSubscribeMapper extends BaseMapper<CourseSubscribe> {

    /**
    * @Author 胡家浩
    * @Description 查询约课信息
    * @Date 2024/5/31 10:37
    * @Return java.util.List<com.zhuiyun.project.api.courseSubscribe.entity.CourseSubscribe>
    * @param venueUniqueIdentifier
* @param courseName
    */
    List<CourseSubscribe> getCourseList (String venueUniqueIdentifier,String courseName);

    /**
    * @Author 胡家浩
    * @Description 根据id查询约课信息
    * @Date 2024/5/31 15:31
    * @Return com.zhuiyun.project.api.courseSubscribe.entity.CourseSubscribe
    * @param id
* @param venueUniqueIdentifier
    */
    CourseSubscribe getCourseInfoById (String id,String venueUniqueIdentifier);

    /**
    * @Author hjh
    * @Description 更新课程状态
    * @Date 2024/6/3 9:36
    * @Return int
    * @param id
* @param courseStatus
* @param venueUniqueIdentifier
    */
    int updateCourseStatus (Integer id, Integer courseStatus, String venueUniqueIdentifier);

    /**
    * @Author hjh
    * @Description 修改课程信息
    * @Date 2024/6/3 11:21
    * @Return int
    * @param courseSubscribe
    */
    int updateCourseById (CourseSubscribe courseSubscribe);

    /**
    * @Author hjh
    * @Description 删除课程信息
    * @Date 2024/6/3 15:00
    * @Return int
    * @param id
* @param venueUniqueIdentifier
    */
    int delCourse (Integer id,String venueUniqueIdentifier);
}
